<template>
	<view>
        <u-navbar
            title="淘汰候选人"
        	rightText="确定"
        	placeholder="true"
            @rightClick="into()"
            :autoBack="true"
        >
        </u-navbar>
		<view>
			<view>
				<view >
					<view class="txt"><text class="red">*</text><text class="tet">淘汰原因</text></view>
					 <u--input
						class="shuru"
					    placeholder="请输入"
					    border="surround"
					    v-model="data.reason"
					  ></u--input>
				</view>
				<view>
					<view class="txt"><text class="tet">人才库</text></view>
					 <u-switch class="shuru" v-model="rencai" activeColor="#5ac725" ></u-switch>
				</view>
				<view>
					<view class="txt1"><text class="tet">备注</text></view>
					  <u--textarea class="shuru1" v-model="data.remarks" placeholder="请输入内容" autoHeight count></u--textarea>
				</view>
				</view>
		</view>
	</view>
</template>

<script>
    export default {
        data() {
          return {
			rencai:true,
			data:{
				
				reason:"",
				remarks:"",
			},
			rid:""
          }
        },
		onLoad(options) {
			this.rid=options.rid
			console.log(options.id)
		},
        methods: {
			confirm(e) {
				console.log(e);
				this.data.birthday = e;
				this.show2=false
		  },
          open() {
            // console.log('open');
          },
          close() {
            this.show = false
            // console.log('close');
          },
		  into(){
		  	this.$request({
		  		url: 'entry/jianli/taotai',
		  		data: {
		  			rid:this.rid,
					reason:this.data.reason,
					remarks:this.data.remarks,
					rencai:this.rencai
		  			
		  		},
		  		method: 'get',
		  		success: (res) => {
		  			this.review(),
		  			this.value=""
		  		}
		  		
		  	})
		  	uni.navigateTo({
		  		url:'./zhaopin'
		  	})
		  	},
			leftClick() {
			            console.log('leftClick');
			        }
			
        }
      }
</script>
<style>
	.red{
		color: red;
	}
	.shuru{
		margin-top: 30rpx;
		height: 20px;
		float:left;
		width: 72%;
	}
	.txt{
		margin-left: 20rpx;
		margin-top: 30rpx;
		float:left;
		width: 17%;
	}
	.h{
		margin-left: 25rpx;
	}
	.danyuan{
		margin-top: 20rpx;
		float:left;
		width: 100%;
	}
	.tet{
		color: #74777a;
	}
	.txt1{
		margin-left: -230rpx;
		margin-top: 120rpx;
		float:left;
		width: 17%;
	}
	.shuru1{
		margin-top: 30rpx;
		margin-left: 145rpx;
		height: 20px;
		float:left;
		width: 72%;
	}
	
</style>